package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 店员实体类
 */
public class EmployeeBean {
    /**员工ID*/
    private int id;
    /**员工姓名*/
    private String name;
    /**员工性别*/
    private String sex;
    /**员工生日*/
    private LocalDate birthday;
    /**员工电话*/
    private String tel;
    /**员工在职状态*/
    private String state="在职";
    /**员工专长*/
    private String skill;
    /**员工服务状态*/
    private String work="空闲";
    /**员工所属门店*/
    private StoreBean store;

    private List<ServeOrderBean> serveOrderList;

    public EmployeeBean() {
    }

    public EmployeeBean(String name, String sex, LocalDate birthday, String tel, String skill, int storeId) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.tel = tel;
        this.skill = skill;
        this.store = new StoreBean();
        this.store.setId(storeId);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }


    public StoreBean getStore() {
        return store;
    }

    public void setStore(StoreBean store) {
        this.store = store;
    }

    public List<ServeOrderBean> getServeOrderList() {
        return serveOrderList;
    }

    public void setServeOrderList(List<ServeOrderBean> serveOrderList) {
        this.serveOrderList = serveOrderList;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", tel='" + tel + '\'' +
                ", state='" + state + '\'' +
                ", skill='" + skill + '\'' +
                ", work='" + work + '\'' +
                ", store=" + store +
                ", serveOrderList=" + serveOrderList +
                '}'+"\n";
    }
}
